package com.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.entity.Consumer;

public interface ConsumerDao {

	/**
	 * 根据用户ID查询用户信息
	 */
	Consumer QueryConsumerInfo(@Param("uid") int uid,@Param("caddress")String address);
	Consumer QueryConsumerInfoByCID(@Param("uid") int uid);
	Consumer QueryConsumerInfoByName(@Param("cname") String cname);
	List<Consumer> userLogin(@Param("uname") String uname, @Param("pwd") String pwd);

	int addConsumer(@Param("uname") String cname, @Param("pwd") String cpwd, @Param("tel") String ctel,
			@Param("address") String caddress);
	
	Consumer userLoginDemo(@Param("uname") String uname, @Param("pwd") String pwd);
    List<Consumer> findAllConsumer();
    int deleteConsumer(int cid);
    List<Consumer> findConsumerByCname(String cname);
    
    int updateConsumer(Consumer consumer);
    int updateConsumePwd(@Param("cid")int cid,@Param("cpwd")String cpwd);
}
